/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.platform.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.platform.entity.PlatformActivity;
import com.wealth.platform.repository.PlatformActivityDao;
import com.wealth.platform.service.IPlatformActivityService;

import iaas.service.impl.BaseServiceImpl;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public class PlatformActivityServiceImpl extends BaseServiceImpl<PlatformActivity> implements IPlatformActivityService{

	@Autowired
	private PlatformActivityDao platformActivityDao;
 

	@Override
	public List<PlatformActivity> findPlatformActivityByType(int type) {
		 
		return platformActivityDao.findPlatformActivityByType(type);
	}
 

	@Override
	public List<PlatformActivity> findByStatusAndType(Integer status,Integer type) {
		
		return platformActivityDao.findByStatusAndType(status, type);
	}
 
	
}
